<!--
  Generated template for the CropImageDemoPage page.

  See http://ionicframework.com/docs/components/#navigation for more info on
  Ionic pages and navigation.
-->
<ion-header>

  <ion-navbar>
    <ion-title>图片裁剪demo</ion-title>
  </ion-navbar>

</ion-header>

<ion-content padding>
  <button ion-button (click)="crop()">裁剪方式1</button>
  <button ion-button (click)="crop2()">裁剪方式2</button>
  <h1>裁剪后</h1>
  <img *ngIf="newSrc" [src]="newSrc">
  <div padding>
    <button ion-button block (click)="nativeService.openUrlByBrowser('https://www.jianshu.com/p/d3dfe150c9e1')">查看详情</button>
  </div>
</ion-content>
